﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;

namespace FreeDream.Common
{
    /// <summary>
    /// 登录用户信息存储,1.HttpContextExtension,2.JwtTokenHelper两处获取,3.注入LoginUser类
    /// </summary>
    public class LoginUser
    {
        public string UserId { get; set; }

        public string UserName { get; set; }

        public string LoginIP { get; set; }

        public void GetUserInfo()
        {
            //var user = Microsoft.AspNetCore.Http.HttpContext.User.Claims.ToList();

        }
    }

}
